package com.ww.springboot.boot.thread.study.eg;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * 描述：ArrayList线程不安全案例1--读
 *
 * @author wanwei
 * @since 2021-05-20 16:47
 */
public class ArrayListUnSafe2 {

    public static void main(String[] args) {
        List<Integer> integers = IntStream.range(0, 100).boxed().collect(Collectors.toList());

        System.out.println(integers);




    }
}
